Optimal. Leaf size=50 \[ a^2 A x+\frac {1}{5} b x^5 (2 a B+A b)+\frac {1}{3} a x^3 (a B+2 A b)+\frac {1}{7} b^2 B x^7 \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {373} \begin {gather*} a^2 A x+\frac {1}{5} b x^5 (2 a B+A b)+\frac {1}{3} a x^3 (a B+2 A b)+\frac {1}{7} b^2 B x^7 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 373
Rubi steps
\begin {align*} \int \left (a+b x^2\right )^2 \left (A+B x^2\right ) \, dx &=\int \left (a^2 A+a (2 A b+a B) x^2+b (A b+2 a B) x^4+b^2 B x^6\right ) \, dx\\ &=a^2 A x+\frac {1}{3} a (2 A b+a B) x^3+\frac {1}{5} b (A b+2 a B) x^5+\frac {1}{7} b^2 B x^7\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 50, normalized size = 1.00 \begin {gather*} a^2 A x+\frac {1}{5} b x^5 (2 a B+A b)+\frac {1}{3} a x^3 (a B+2 A b)+\frac {1}{7} b^2 B x^7 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a+b x^2\right )^2 \left (A+B x^2\right ) \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.38, size = 50, normalized size = 1.00 \begin {gather*} \frac {1}{7} x^{7} b^{2} B + \frac {2}{5} x^{5} b a B + \frac {1}{5} x^{5} b^{2} A + \frac {1}{3} x^{3} a^{2} B + \frac {2}{3} x^{3} b a A + x a^{2} A \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.28, size = 50, normalized size = 1.00 \begin {gather*} \frac {1}{7} \, B b^{2} x^{7} + \frac {2}{5} \, B a b x^{5} + \frac {1}{5} \, A b^{2} x^{5} + \frac {1}{3} \, B a^{2} x^{3} + \frac {2}{3} \, A a b x^{3} + A a^{2} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 49, normalized size = 0.98 \begin {gather*} \frac {B \,b^{2} x^{7}}{7}+\frac {\left (b^{2} A +2 a b B \right ) x^{5}}{5}+A \,a^{2} x +\frac {\left (2 a b A +a^{2} B \right ) x^{3}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.33, size = 48, normalized size = 0.96 \begin {gather*} \frac {1}{7} \, B b^{2} x^{7} + \frac {1}{5} \, {\left (2 \, B a b + A b^{2}\right )} x^{5} + A a^{2} x + \frac {1}{3} \, {\left (B a^{2} + 2 \, A a b\right )} x^{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 48, normalized size = 0.96 \begin {gather*} x^3\,\left (\frac {B\,a^2}{3}+\frac {2\,A\,b\,a}{3}\right )+x^5\,\left (\frac {A\,b^2}{5}+\frac {2\,B\,a\,b}{5}\right )+\frac {B\,b^2\,x^7}{7}+A\,a^2\,x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.07, size = 53, normalized size = 1.06 \begin {gather*} A a^{2} x + \frac {B b^{2} x^{7}}{7} + x^{5} \left (\frac {A b^{2}}{5} + \frac {2 B a b}{5}\right ) + x^{3} \left (\frac {2 A a b}{3} + \frac {B a^{2}}{3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________